package com.cskaoyan.bean.pojo;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

import java.util.Date;

@Data
@NoArgsConstructor
@AllArgsConstructor
@Accessors(chain = true)
public class User {
    private Integer id;

    private String username;

    private String password;

    private Byte gender;

    private Date birthday;

    private Date lastLoginTime;

    private String lastLoginIp;

    private Byte userLevel;

    private String nickname;

    private String mobile;

    private String avatar;

    private String weixinOpenid;

    private Byte status;

    private Date addTime;

    private Date updateTime;

    private Boolean deleted;

    public User(String username, String password, Integer id) {
        this.username = username;
        this.password = password;
        this.id = id;
    }
    public User(String username, String password) {
        this.username = username;
        this.password = password;
    }
}